import { lazy } from 'react';

const Home = lazy(() => import('../pages/home/index.tsx'));
const Detail = lazy(() => import('../pages/detail/index.tsx'));

export type RouterType = {
  path: string;
  component: React.LazyExoticComponent<any>;
  root: string[];
  notExect?: boolean;
}[];

const Routers: RouterType = [
  { path: '/home', component: Home, root: [] },
  { path: '/detail', component: Detail, root: [] },
];

export default Routers;

